import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询公共诉求回访报告全部
export const publicAppealFollowReportList = data => {
    return $get('/risk/publicAppealFollowReport/list', data)
}

// 查询公共诉求回访报告列表
export const publicAppealFollowReportPage = data => {
    return $get('/risk/publicAppealFollowReport/page', data)
}

// 新增公共诉求回访报告
export const publicAppealFollowReportAdd = data => {
    return $post('/risk/publicAppealFollowReport/add', data)
}

// 查询公共诉求回访报告详情
export const publicAppealFollowReportDetail = id => {
    return $get('/risk/publicAppealFollowReport/detail/'+ id)
}

// 更新公共诉求回访报告
export const publicAppealFollowReportUpdate = data => {
    return $post('/risk/publicAppealFollowReport/update', data)
}

// 删除公共诉求回访报告
export const publicAppealFollowReportDelete = id => {
    return $post('/risk/publicAppealFollowReport/delete/'+ id)
}

// 导出公共诉求回访报告
export const publicAppealFollowReportExport = (data,fileName) => {
    return $download('/risk/publicAppealFollowReport/export',data, fileName)
}
